package Server;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;

public class ServerMain {
	
	public static void main(String[] args) throws IOException
	{
		   ServerSocket server = new ServerSocket (4444);
		    while (true) {
		      Socket client = server.accept ();
		      System.out.println ("Accepted from " + client.getInetAddress ());
		      ChatHandler c = new ChatHandler (client);
		      c.start ();
		    }
	}
}
